package com.neusoft.neuiotms.dcom.repository.malfunction;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.malfunction.MalfunctionSecondLeader;

public interface MalfunctionSecondLeaderRepository extends JpaRepository<MalfunctionSecondLeader, Long> {

    MalfunctionSecondLeader findByWorkNumAndTaskId(String workNum, String taskId);

    MalfunctionSecondLeader findTopByWorkNumOrderByIdDesc(String workNum);

}
